package de.fancyCatEntertaiment;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

public class HelpMinigamesActivity extends Activity {
	
	Button back;
	

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.helpminigame);
		
		ActivityRegistry.registerActivity(this);

		initUI();
	}
	
	public void initUI()
	{
		back = (Button)findViewById(R.id.back);
		back.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});

		Button quit = (Button)findViewById(R.id.quit);
		quit.setText(R.string.button_quit);

		quit.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent backtomain = new Intent(HelpMinigamesActivity.this,MainMenueActivity.class);
				startActivity(backtomain);
				
			}
		});
	}

}